﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace AnimationLearningSpeed.RoemerAnimations
{
    /// <summary>
    /// Interaction logic for ControlReadingIV.xaml
    /// </summary>
    public partial class ControlReadingIV : UserControl
    {
        public ControlReadingIV()
        {
            InitializeComponent();
            this.GControl.Visibility = Visibility.Hidden;
        }

        private void bSlow_Click(object sender, RoutedEventArgs e)
        {
            this.GControl.Visibility = Visibility.Visible;
            BeginStoryboard((Storyboard)this.FindResource("StoryboardI"));
        }

        private void bMedium_Click(object sender, RoutedEventArgs e)
        {
            this.GControl.Visibility = Visibility.Visible;
            BeginStoryboard((Storyboard)this.FindResource("StoryboardIII"));
        }

        private void bFast_Click(object sender, RoutedEventArgs e)
        {
            this.GControl.Visibility = Visibility.Visible;
            BeginStoryboard((Storyboard)this.FindResource("StoryboardII"));
        }
    }
}
